package com.funny1.factoryprocessor;

import com.funny1.app.Boo;
import com.funny1.app.Eoo;
import com.funny1.app.Koo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.GenericBeanDefinition;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.annotation.ScannedGenericBeanDefinition;
import org.springframework.stereotype.Component;

/**
 * @author fanxiao  2021/8/11
 * @since 1.0.0
 */
@Slf4j
@Component
public class FooBeanFactoryPostProcessor implements BeanFactoryPostProcessor {

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		log.info("FooBeanFactoryPostProcessor invoked");
		GenericBeanDefinition eoo = (GenericBeanDefinition) beanFactory.getBeanDefinition("eoo");
	}
}
